//
//  BlueListTableViewCell.m
//  bluetooth
//
//  Created by 周季阳 on 15/6/11.
//  Copyright (c) 2015年 switch. All rights reserved.
//

#import "BlueListTableViewCell.h"
#import "UIViewAdditions.h"
@implementation BlueListTableViewCell
@synthesize zTitle,zBackView,zImageView;
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        zBackView = [[UIView alloc]initWithFrame:CGRectMake(10, 5, self.width-20, 30)];
        zBackView.backgroundColor = [UIColor whiteColor];
        zBackView.layer.cornerRadius = 6.0;
        [self addSubview:zBackView];
        
        zTitle = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, zBackView.frame.size.width-60, 30)];
        zTitle.textColor = [UIColor blackColor];
        zTitle.backgroundColor = [UIColor clearColor];
        zTitle.textAlignment = NSTextAlignmentLeft;
        zTitle.font = [UIFont systemFontOfSize:14];
        [zBackView addSubview:zTitle];
        
        zImageView = [[UIImageView alloc]initWithFrame:CGRectMake(zBackView.frame.size.width-20, 7.5, 8, 15)];
        zImageView.image = [UIImage imageNamed:@"rightjian"];
        zImageView.userInteractionEnabled = NO;
        [zBackView addSubview:zImageView];

    }
    return self;
}

@end
